package com.fly.service.Impl;

import com.fly.bean.Users;
import com.fly.mapper.UpdateFixTaskMapper;
import com.fly.service.UpdateFixTaskService;
import com.fly.vo.AddFix_WH;
import com.fly.vo.AlterFix_WH;
import com.fly.vo.AuditFix_WH;
import com.fly.vo.UpdateFix_WH;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UpdateFixTaskServiceImpl implements UpdateFixTaskService {

    @Resource
    private UpdateFixTaskMapper updateFixTaskMapper;

    @Override
    public List<Users> selectFixUserByFixId(int fixId) {
        return updateFixTaskMapper.selectFixUserByFixId(fixId);
    }

    @Override
    public List<Users> selectWaitFixUserByFixId(int fixId) {
        return updateFixTaskMapper.selectWaitFixUserByFixId(fixId);
    }

    @Override
    public int deleteRelationByFixId(int fixId) {
        return updateFixTaskMapper.deleteRelationByFixId(fixId);
    }

    @Override
    public int addTaskUserRelation(UpdateFix_WH updateFix_wh) {
        return updateFixTaskMapper.addTaskUserRelation(updateFix_wh);
    }

    @Override
    public int updateTaskIsCancel(UpdateFix_WH updateFix_wh) {
        return updateFixTaskMapper.updateTaskIsCancel(updateFix_wh);
    }

    @Override
    public int selectTaskStateByFixId(int fixId) {
        return updateFixTaskMapper.selectTaskStateByFixId(fixId);
    }

    @Override
    public int deletePoleFixRelation(int fixId) {
        return updateFixTaskMapper.deletePoleFixRelation(fixId);
    }

    @Override
    public int updateTaskState(UpdateFix_WH updateFix_wh) {
        return updateFixTaskMapper.updateTaskState(updateFix_wh);
    }

    @Override
    public int updateTask(AlterFix_WH alterFix_wh) {
        return updateFixTaskMapper.updateTask(alterFix_wh);
    }

    @Override
    public int updateFix(AlterFix_WH alterFix_wh) {
        return updateFixTaskMapper.updateFix(alterFix_wh);
    }

    @Override
    public int creatUserAuditTask(AuditFix_WH auditFix_wh) {
        return updateFixTaskMapper.creatUserAuditTask(auditFix_wh);
    }

    @Override
    public int manageUserAuditTask(AuditFix_WH auditFix_wh) {
        return updateFixTaskMapper.manageUserAuditTask(auditFix_wh);
    }

    @Override
    public int bossAuditTask(AuditFix_WH auditFix_wh) {
        return updateFixTaskMapper.bossAuditTask(auditFix_wh);
    }
}
